import collections

word = input()
cnt = dict(collections.Counter(word))

# for i in word:
#     cnt[i] = 0;
# for i in word:
#     cnt[i] = cnt[i] + 1;

mx = max(cnt.values());
mn = min(cnt.values());

flag = 0;
ans = mx - mn;
k = int(ans ** 0.5);

if ans < 2:
    flag = 1;
for i in range(2, k):
    if ans % i == 0:
        flag = 1;
        break;

if flag == 1:
    print('No Answer\n0')
else:
    print('Lucky Word', ans, sep='\n')
